home *** CD-ROM | disk | FTP | other *** search
- function BookController() {
- var isbnList = document.forms['form1']['ISBN'];
- var selected = isbnList.selectedIndex;
- if ( selected < 0 ) {
- alert('You must select a book first.');
- } else {
- var title = isbnList.options[selected].text;
- if ( title.indexOf( 'Teacher' ) >= 0 ) {
- alert( 'Teacher Editions cannot be viewed from this screen.' );
- } else {
- var isbn = isbnList.options[selected].value;
- /* get selected user button
- var userGroup = document.forms['form1']['USER'];
- for ( i = 0; i < userGroup.length; i++ ) {
- if ( userGroup[i].checked ) break;
- }
- var username = userGroup[i].value;*/
- /* get selected mode
- if ( document.forms['form1']['SAMPLE'].checked ) {
- var sample = 'true';
- } else {
- var sample = 'false';
- }*/
- /* get selected platform
- if ( document.forms['form1']['SUNRAY'].checked ) {
- var useragent = 'X11;';
- } else {
- var useragent = 'standard';
- }*/
- url = "/BookController?ACTION=0&ISBN=" + escape( isbn );
- //ls_url = \"/BookController?ACTION=0&ISBN=\" + escape( isbn ) + \"&SAMPLE=\" + escape( sample ) + \"&USERAGENT=\" + escape( useragent ) + \"&USERNAME=\" + escape( username );
- location.href = url;
- }
- }
- }
-
-
- function GlossaryTool() {
- isbnList = document.forms['form1']['ISBN'];
- selected = isbnList.selectedIndex;
- if (selected < 0) {
- alert('You must select a book first.');
- } else {
- isbn = isbnList.options[selected].value;
- location.href = "/GlossaryTool?ISBN=" + escape( isbn );
- }
- }
-
-
- function Thumbnails() {
- var server = location.href;
- if ( server.indexOf( "dev.mhlearning.com" ) >= 0 ) {
- location.href = "/OSQLTool?db=tlnd&sql=select+xmlid%2C+paraid%2C+id%2C+mattitle%2C+mattype2%2C+mattype3%2C+mediatype+from+obdata+O%2C+asset2para+A+where+%28O.id+%3D+A.assetid%29+and+%28type+%3D+1%29+and+%28%28mattype2%3D%27Activities%27+and+mattype3%3D%27Interactive+Maps%27%29+or+%28mattype2%3D%27Images%27+and+mattype3%3D%27Slideshows%27%29%29+and+not+id+in+%28select+assetid+from+thumbnail%29";
- } else if ( server.indexOf( "qa.mhlearning.com" ) >= 0 ) {
- location.href = "/OSQLTool?db=tlnq&sql=select+xmlid%2C+paraid%2C+id%2C+mattitle%2C+mattype2%2C+mattype3%2C+mediatype+from+obdata+O%2C+asset2para+A+where+%28O.id+%3D+A.assetid%29+and+%28type+%3D+1%29+and+%28%28mattype2%3D%27Activities%27+and+mattype3%3D%27Interactive+Maps%27%29+or+%28mattype2%3D%27Images%27+and+mattype3%3D%27Slideshows%27%29%29+and+not+id+in+%28select+assetid+from+thumbnail%29";
- } else {
- alert( "Not available on Production server" );
- }
- }
-